﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;

namespace Entity
{
    public class EAccount
    {
        private string _UserName;     
        //private string _Psw;   
        private string _RoleName; 
        private string _Authoriry;   
           
        public EAccount(string name,string roleName,string authoriry)
        {
            this._UserName=name;
            //his._Psw=psw;
            this._RoleName=roleName;
            this._Authoriry=authoriry;
        }
        public EAccount()
        {
 
        }

        public string UserName
        {
            get { return this._UserName; }
            set { this._UserName = value; }
        }        
        public string RoleName
        {
            get { return this._RoleName; }
            set { this._RoleName = value; }
        }
        public string Authoriry
        {
            get { return this._Authoriry; }
            set { this._Authoriry = value; }
        }
        public IList GetAuthorities()
        {
            IList authorities = new List<String>();
            string[] array = this._Authoriry.Split(',');
            for (int i = 0; i < array.Length; i++)
            {
                authorities.Add(array[i]);
            }                
            return authorities;
        }


    }
}
